﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using MeetingMinutesManager.Form;

namespace MeetingMinutesManager.Maintenance
{
    public partial class Dashboard : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            FormUtil.AuthenticateManager(Session, Response);
        }

        protected void btnCategory_Click(object sender, EventArgs e)
        {
            PopupForm popup = new PopupForm(Response, "MeetingMinutesCategoryMaintenance.aspx", "MeetingMinutesCategoryMaintenance", "1000", "500", "100", "50");
            popup.Popup();

            Close();
        }

        protected void btnClose_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void Close()
        {
            PopupForm thisForm = new PopupForm(Response);
            thisForm.Close();
        }

        protected void btnUser_Click(object sender, EventArgs e)
        {
            PopupForm popup = new PopupForm(Response, "UserMaintenance.aspx", "UserMaintenance", "1000", "500", "100", "50");
            popup.Popup();

            Close();
        }

        protected void btnTeam_Click(object sender, EventArgs e)
        {
            PopupForm popup = new PopupForm(Response, "TeamMaintenance.aspx", "TeamMaintenance", "1000", "500", "100", "50");
            popup.Popup();

            Close();
        }

        protected void btnRole_Click(object sender, EventArgs e)
        {
            PopupForm popup = new PopupForm(Response, "RoleMaintenance.aspx", "RoleMaintenance", "1000", "500", "100", "50");
            popup.Popup();

            Close();
        }
    }
}
